/** /file */
#ifndef ROBOTFUNCTIONS_H
#define ROBOTFUNCTIONS_H
#include "swarmSocketClient.h"
#include "swarmSocketServer.h"
#include "Motor.h"
#include "LED.h"
#include "Bumper.h"
//#include <ncurses>
#include <cstdio>
#include <fstream>
#include <string>
#include <map>
#include <iostream>
#include <cctype>
#include <cstdlib>

void robotWrite(string input, int b, map<int, swarmSocketClient> &clients, map<int, bool> &cons);
int robotConnect(map<int, swarmSocketClient>& clients, map<int, string>& ips, map<int, string>& passes,
		map<int, bool>& cons, string& robotadrress, int botnum=-1);

void textInterface(map<int, swarmSocketClient>& clients, map<int, string>& ips, map<int, string>& passes,
		map<int, bool>& cons, string& robotadrress);
void textParser(string s);
string itoa(int i);

string ftoa(double f);

string toupper(string s);

bool robotReconnect(map<int, swarmSocketClient>& clients, map<int, string>& ips, map<int, string>& passes,
		map<int, bool>& cons, int botnum = -1);
//bool robotParser(string s, Motor& mr, LED& gn, LED& be, LED& rd, Bumper bump);
#endif
